package com.wentao.thisService.mapper;

import com.wentao.thisService.model.PayEntity;
import com.wentao.thisService.model.entities.IntResultEntity;
import com.wentao.thisService.model.entities.PageEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface PayDao {

	public List<PayEntity> Search(PayEntity entity);
    public List<PayEntity> SearchPage(@Param("entityItem") PayEntity entityItem, @Param("pageItem") PageEntity pageItem);
    public void Update(@Param("entityItem") PayEntity entity, @Param("valueItem") PayEntity val);
    public void Insert(PayEntity entity);
    
    public List<PayEntity> SearchAut(PayEntity entity);
    public List<PayEntity> SearchPageAut(@Param("entityItem") PayEntity entityItem, @Param("pageItem") PageEntity pageItem);
    public void UpdateAut(@Param("entityItem") PayEntity entity, @Param("valueItem") PayEntity val);
    
    public IntResultEntity Count(PayEntity entity);
    public IntResultEntity CountAut(PayEntity entity);

    public List<PayEntity> SearchByPayIdList(@Param("payIdList") List<Long> payIdList);
    
}